#include "Led.h"

#define LEDPIN 22

void Led_Init(void)
{
    pinMode(LEDPIN,OUTPUT);

    digitalWrite(LEDPIN,LOW);

    Serial.println("Led Init success");

    //Serial.printf("ESP32 HEAP %d\r\n",esp_get_free_heap_size());
}

void Led_Open(void)
{
    digitalWrite(LEDPIN,HIGH);

    Serial.println("Led open success");

    Serial.printf("ESP32 HEAP %d\r\n", esp_get_free_heap_size());
} 

void Led_Close(void)
{
    digitalWrite(LEDPIN,LOW);

    Serial.println("Led close success");

    Serial.printf("ESP32 HEAP %d\r\n", esp_get_free_heap_size());
}
